<?php
/* @var $this CommentController */
/* @var $model Comment */

$this->breadcrumbs=array(
	'Comments'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Comment', 'url'=>array('index')),
	array('label'=>'Create Comment', 'url'=>array('create')),
);

$cs = Yii::app ()->clientScript;
$cs->registerScript('#yw2',
"
		$(document).ready(function(){
 		   $('#main-nav .nav-top-item').eq(0).removeClass('current');
		   $('#yw1').css(\"display\",\"none\");
		   $('#yw2').css(\"display\",\"block\");
		   $('#main-nav .nav-top-item').eq(1).addClass('current');
		});
"
);
?>

    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>留言管理</h3>
        <ul class="content-box-tabs">
          <li><a href="#" class="default-tab current">表单</a></li>          
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">  

		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id'=>'comment-grid',
			'dataProvider'=>$model->search(),
			'filter'=>$model,
			'columns'=>array(
				'name',
				'email',
				'phone',
				'content',
				'comment_date',		
			),
		)); ?>
		</div>
        <!-- End #tab1 -->
        <div class="tab-content" id="tab2">         
            <fieldset>
		
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->          
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->